package com.sk.cardeal.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by sk on 2018/1/16.
 */

public class CostType implements Parcelable {

    String costName = "";
    String price = "";
    String cost = "";
    String remark = "";

    public String getCostName() {
        return costName;
    }

    public void setCostName(String costName) {
        this.costName = costName;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getCost() {
        return cost;
    }

    public void setCost(String cost) {
        this.cost = cost;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.costName);
        dest.writeString(this.price);
        dest.writeString(this.cost);
        dest.writeString(this.remark);
    }

    public CostType() {
    }

    protected CostType(Parcel in) {
        this.costName = in.readString();
        this.price = in.readString();
        this.cost = in.readString();
        this.remark = in.readString();
    }

    public static final Parcelable.Creator<CostType> CREATOR = new Parcelable.Creator<CostType>() {
        @Override
        public CostType createFromParcel(Parcel source) {
            return new CostType(source);
        }

        @Override
        public CostType[] newArray(int size) {
            return new CostType[size];
        }
    };
}
